package com.tanhua.app.controller;

import com.tanhua.app.controllerservice.MovementsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/movements")
public class MovementsController {

    @Autowired
    private MovementsService movementsService;



    @GetMapping(name = "最近访客",value = "/visitors")
    public ResponseEntity visitors(){

        return movementsService.visitors();
    }





}
